package com.situ.day5;

import org.junit.Test;

public class OverloadDemo {
	
	@Test
	public void test1() {
	}
	
	void show(int a, char b, double c){}
	int show(int a, double c, char b){return 0;} 
	//Duplicate method show(int, char, double) in type OverloadDemo
	//void show(int x, char y, double z){}
	
	@Test
	public void test11() {
		Student student = new Student();
		student.setClassName("Java1812");
		//如果子类覆盖Override父类的show()方法，调用的就是子类里面覆盖show()方法
		//如果子类没有覆盖父类的show()方法，那么调用的还是从父类继承的show方法
		student.show();
	}
	
}
